package com.fanbai.score.user.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by acer on 2017/6/11.
 * 购物车中的商品对象
 */

public class CartGoodsInfo_Bean implements Parcelable {

    private String goodsPid;
    private String goodsImg;
    private String goodsName;
    private int goodsCnt;
    private int goodsPrice;

    public void setGoodsPid(String goodsPid) {
        this.goodsPid = goodsPid;
    }

    public String getGoodsPid() {

        return goodsPid;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public void setGoodsCnt(int goodsCnt) {
        this.goodsCnt = goodsCnt;
    }

    public void setGoodsPrice(int goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsImg() {

        return goodsImg;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public int getGoodsCnt() {
        return goodsCnt;
    }

    public int getGoodsPrice() {
        return goodsPrice;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.goodsImg);
        dest.writeString(this.goodsName);
        dest.writeInt(this.goodsCnt);
        dest.writeInt(this.goodsPrice);
    }

    public CartGoodsInfo_Bean() {
    }

    protected CartGoodsInfo_Bean(Parcel in) {
        this.goodsImg = in.readString();
        this.goodsName = in.readString();
        this.goodsCnt = in.readInt();
        this.goodsPrice = in.readInt();
    }

    public static final Parcelable.Creator<CartGoodsInfo_Bean> CREATOR = new Parcelable.Creator<CartGoodsInfo_Bean>() {
        @Override
        public CartGoodsInfo_Bean createFromParcel(Parcel source) {
            return new CartGoodsInfo_Bean(source);
        }

        @Override
        public CartGoodsInfo_Bean[] newArray(int size) {
            return new CartGoodsInfo_Bean[size];
        }
    };
}
